print("Hello xLua")

--local button = CS.UnityEngine.GameObject.Find("Button");
function awake()
    print("lua awake")
end

function start()
	print("lua start...")
    local button = CS.UnityEngine.GameObject.Find("btn_ok").gameObject
    print(button.name)
    CS.UIEventListener.Get(button).onClick = function(self)
       print(self.name)
       print("click")    
    end
end

function update()
    print("update")
end

